package com.singularity.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.singularity.common.domain.entity.Attachment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 天
 *
 * @description: 附件应用持久层
 */
@Mapper
public interface AttachmentMapper extends BaseMapper<Attachment> {

    /**
     * 批量添加附件
     * @param attachments
     * @return
     */
    int insertBatch(@Param("list") List<Attachment> attachments);
}
